how to control relay in industry